/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view.additional;

import com.sun.lwuit.TextArea;
import com.sun.lwuit.plaf.Border;

/**
 *
 * @author Kvest
 */
public class OrderDetailsText extends TextArea
{
    public OrderDetailsText()
    {
        super("", 1, 30);
        setAlignment(TextArea.LEFT);
        setEditable(false);
        setGrowByContent(true); 
        
        //Color and border
        getStyle().setBgColor(0xdddddd, true);
        getStyle().setBorder(Border.createEmpty());
        getSelectedStyle().setBgColor(0xdddddd, true);
        getSelectedStyle().setBorder(Border.createEmpty());
        getUnselectedStyle().setBgColor(0xdddddd, true);
        getUnselectedStyle().setBorder(Border.createEmpty());
        getDisabledStyle().setBgColor(0xdddddd, true);
        
        getUnselectedStyle().setMargin(TOP, 1);
        getSelectedStyle().setMargin(TOP, 1);
        getUnselectedStyle().setMargin(BOTTOM, 1);
        getSelectedStyle().setMargin(BOTTOM, 1);
    }
}
